package com.superbytecode.cloud.common.model.mq;

import com.superbytecode.cloud.common.model.IDict;

/**
 * All rights Reserved, Designed By www.super-master.com
 *
 * @ProjectName: beacon-cloud
 * @Package: com.superbytecode.cloud.common.model.mq
 * @ClassName: DelayedLevel
 * @Description: [mq 延时时间等级]
 * <p>
 * @see: MessageStoreConfig#messageDelayLevel = "1s 5s 10s 30s 1m 2m 3m 4m 5m 6m 7m 8m 9m 10m 20m 30m 1h 2h";
 * </p>
 * @Author: [Lance Ting]
 * @Date: 2024/11/1 15:41
 * @Version: V1.0
 * @Copyright: 2024 www.super-master.com Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
public enum DelayedLevel implements IDict<Integer> {
    TIME_1S(1, "1s"),
    TIME_5S(2, "5s"),
    TIME_10S(3, "10s"),
    TIME_30S(4, "30s"),
    TIME_1M(5, "1m"),
    TIME_2M(6, "2m"),
    TIME_3M(7, "3m"),
    TIME_4M(8, "4m"),
    TIME_5M(9, "5m"),
    TIME_6M(10, "6m"),
    TIME_7M(11, "7m"),
    TIME_8M(12, "8m"),
    TIME_9M(13, "9m"),
    TIME_10M(14, "10m"),
    TIME_20M(15, "20m"),
    TIME_30M(16, "30m"),
    TIME_1H(17, "1h"),
    TIME_2H(18, "2h"),
    ;

    DelayedLevel(Integer code, String text) {
        initDict(code, text);
    }

}